import axios from '../../network/axios'

// 店铺总业绩相关数据
export function totalPerformance(params = {}) {
  return axios({
    url: '/vip-analyse/totalPerformance',
    method: 'get',
    params: {
      type: params
    }
  })
}

// 店铺在途调货
export function getAnalyseTransitList(params = {}) {
  return axios({
    url: '/vip-analyse/transit',
    method: 'get',
    params: {
      type: params
    }
  })
}

// VIP回访
export function getAnalyseVipReturnList(params = {}) {
  return axios({
    url: '/vip-analyse/vipReturn',
    method: 'get',
    params: {
      type: params
    }
  })
}

// 销售排行
export function getAnalyseSellRankingsList(params = {}) {
  return axios({
    url: '/vip-analyse/sellRankings',
    method: 'get',
    params: {
      type: params
    }
  })
}

// 业绩分析
export function getAnalysePerformanceList(params = {}) {
  return axios({
    url: '/vip-analyse/performance',
    method: 'get',
    params: {
      type: params
    }
  })
}

// 可用促销
export function getAnalysePromotionList(params = {}) {
  return axios({
    url: '/vip-analyse/promotion',
    method: 'get',
    params: {
      type: params
    }
  })
}

// 销售趋势
export function getAnalyseSellTrendList(params = {}) {
  return axios({
    url: '/vip-analyse/sellTrend',
    method: 'get',
    params: {
      type: params
    }
  })
}
